package com.system.Mapper;

import com.system.Entity.Announcement;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AnnouncementMapper {
    List<Announcement> getAnnouncementList(@Param("title") String title, @Param("status") String status);

    void addAnnouncement(Announcement announcement);

    void updateAnnouncement(Announcement announcement);

    void deleteAnnouncement(String announcementId);

    void updateStatus(Announcement announcement);

    List<Announcement> getAnnouncements();
}
